<?php

use yii\helpers\Html;
use yii\helpers\Url;

/**
 * @var $this \yii\web\View
 * @var $exception \yii\web\HttpException
 */

$this->title = '系统发生错误';
?>
<div class="error-container">
    <div class="well">
        <h1 class="grey lighter smaller">
            <span class="blue bigger-125">
                <i class="ace-icon fa fa-exclamation-circle"></i>
                <?php echo $exception->statusCode;?>
            </span>
            <?php echo Html::encode($exception->getMessage());?>
        </h1>

        <hr />
        <?php if (YII_ENV_DEV) {?>
            <pre><?php print_r($exception->getTraceAsString());?></pre>
        <?php }?>

        <div>
            <div class="space"></div>
            <h4 class="smaller">请尝试以下操作：</h4>

            <ul class="list-unstyled spaced inline bigger-110 margin-15">
                <li>
                    <i class="ace-icon fa fa-hand-o-right blue"></i>
                    <a href="javascript:void(0)" onclick="window.location.reload();">刷新当前页面</a>
                </li>

                <li>
                    <i class="ace-icon fa fa-hand-o-right blue"></i>
                    <a href="<?php echo Url::to(['/admin']);?>">返回主页</a>
                </li>

                <li>
                    <i class="ace-icon fa fa-hand-o-right blue"></i>
                    <a href="javascript:void(0)" onclick="window.history.go(-1)">返回上一页</a>
                </li>
            </ul>
        </div>
    </div>
</div>